Skip to content

Improve error responses#116

Merged
hwhmeikle merged 2 commits intomainfrom
improve-error-handling
Jan 20, 2026
Merged

Improve error responses#116
hwhmeikle merged 2 commits intomainfrom
improve-error-handling

Conversation

@hwhmeikle
Copy link
Contributor

New features

  • Added enableLogging option to AuthsignalOptions to control SDK logging behavior
  • All error responses now respect the enableLogging flag for conditional console output
  • Enhanced error messages now include error codes in the format: [Authsignal] ERROR_CODE: description

Deprecated

  • The error field in API responses is deprecated in favor of errorCode and errorDescription (marked with JSDoc @deprecated tag)

Checklist

  • Version bumped
  • Documentation updated

@hwhmeikle hwhmeikle added the enhancement New feature or request label Jan 20, 2026
@Ashutosh-Bhadauriya
Copy link
Collaborator

this is nicee

@hwhmeikle hwhmeikle merged commit b16df14 into main Jan 20, 2026
1 check passed
@hwhmeikle hwhmeikle deleted the improve-error-handling branch January 20, 2026 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants